window: Prevent resize cursors from sticking
authorMatthias Clasen <mclasen@redhat.com>
Wed, 1 May 2019 00:16:21 +0000 (00:16 +0000)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 1 May 2019 00:19:35 +0000 (20:19 -0400)
commit26b17473aac0178a8df82bf9f5f8796216aa1080
tree75d93709855b439315211748f8214dc16a362e9e
parent074a0014c1c0c792458c263e9cb660fcfdc662bf
window: Prevent resize cursors from sticking

When a modal dialog is smaller than its parent,
we were keeping the resize cursor from the dialogs
edge all over the parent window, which looks
really irritating, since the resize cursors are
closely associated with the window edge. Fix
this by falling back to the default cursor
outside the grab widgets surface.

Closes: https://gitlab.gnome.org/GNOME/gtk/issues/23
gtk/gtkwindow.c